<T:ViewBase x:Class="WPFExcelReport.TABGS08"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                     xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Name="TV"
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby10000  x:Key="dw"/>  
        <ucd:Divideby1000  x:Key="d1000"/> 
        <ucd:PNumConverter  x:Key="pnum"/> 
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/> 
        </T:ViewBase.Resources>
     <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition> 
        </Grid.RowDefinitions>
        <Grid Grid.Row="0"  Margin="0,0,0,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Button  Grid.Column="0" Name="cCalculate"  Height="Auto"   Width="Auto"  Margin="0,0,0,0" Content="{Binding Source={Localization:Translate Word=保存}}"  VerticalAlignment="Center" 
                         Click="SaveCommand" />
            <TextBlock Grid.Column="1" Background="White"   Height="Auto"    Width="80"
                           Text="{Binding Path=GAKG1,Converter={StaticResource ResourceKey=d100},  Source={StaticResource ResourceKey=vwMaster}}" 
                           Margin="15,0,0,0"   VerticalAlignment="Center"/>
        </Grid>
        <DataGrid  Grid.Row="1"  Grid.Column="0"
                   VerticalAlignment="Top" 
                   AutoGenerateColumns="False"
                   EnableRowVirtualization="False"
                   VerticalScrollBarVisibility="Auto"
                   HorizontalScrollBarVisibility="Auto"
                   HeadersVisibility="Column" 
                   ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}" 
                   IsSynchronizedWithCurrentItem="True"
                    x:Name="dlgMaster"
                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                   >
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=GAGGFARBE,Converter={StaticResource ResourceKey=gb2312}}" Header="{Binding Source={Localization:Translate Word=AB纱}}" Width="Auto" MinWidth="40" />
                <DataGridTextColumn  Binding="{Binding Path=GAGANTEIL,Converter={StaticResource ResourceKey=d1000}}" Header="{Binding Source={Localization:Translate Word=比例}}" Width="Auto" MinWidth="60" />
            </DataGrid.Columns> 
        </DataGrid  > 
    </Grid>
</T:ViewBase>
